<template>
  <el-card class="main-card">
    <template #header>
      <div class="card-header">
        <span>历史上报记录</span>
      </div>
    </template>
    <template #default>
      <div class="main-table">
        <history-table></history-table>
      </div>
    </template>
    <template #footer>
      <div class="card-footer">欢迎来到历史记录页面@YTH科技有限公司</div>
    </template>
  </el-card>
</template>

<script setup>
import HistoryTable from '@/components/report/HistoryTable.vue'
import { onMounted } from 'vue'
import { useAqiFeedbackStore } from '@/stores/aqi/aqiFeedback.js'

const aqiFeedbackStore = useAqiFeedbackStore()

onMounted(() => {
  aqiFeedbackStore.getFeedbackList()
})
</script>

<style scoped lang="scss">
.main-card {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  .main-table {
    height: 500px;
  }
  .card-header {
    font-weight: bold;
    font-size: 20px;
  }
  .card-footer {
    font-size: 18px;
    text-align: right;
    color: #a1a1a5;
    margin-top: 10px;
  }
}
</style>
